{% extends "index.html" %}

{% block content %}
	{% for post in posts %}
		<section class="blog-post">
			<header>
				<h3><a href="/blog/post/{{ post.id }}/" title="{{ post.title }}">{{ post.title }}</a></h3>
				<span class="date">
					<a href="/blog/{{ post.date|date:"Y" }}/{{ post.date|date:"m" }}/{{ post.date|date:"d" }}/" title="Отобрать по дате">
						{{ post.date|date:"Y-m-d" }}
					</a> / {{ post.time }}</span>
			</header>
			<article>{{ post.content|safe }}</article>
			<footer>
				<span class="tags">
					Теги:
					{% for tag in post.taglist %}
							<!-- style="font-size: {{tag.font_size|add:"60"}}%;" -->
					        <a href="/blog/tag/{{tag.name}}/" title="{{ tag.count }}">
					            {{tag.name}}
					        </a>
					{% endfor %}
			    </span>
			    <span>
			    	<a href="/blog/{{ post.date|date:"Y" }}/{{ post.date|date:"m" }}/{{ post.date|date:"d" }}/{{ post.slug }}/" title="{{ post.title }}">More&gt;&gt;&gt;</a>
			    </span>
			</footer>
		</section>
	{% endfor %}
{% endblock %}

{% load blog_tagcloud %}

{% block sidebar %}
	{% blog_tagcloud %}
{% endblock %}